package com.acme.exceptions;

import com.acme.bankapp.domain.bank.Account;

public class OverDraftLimitExceededException extends NotEnoughFundsException {
	
	private static final long serialVersionUID = 1L;
	Account account;
	double amount;
	double maxSum;

	public OverDraftLimitExceededException(double amount, Account account) {
		setAmount(amount);
		setAccount(account);
		setMaxSum(account.maximumAmountToWithdraw());
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public double getMaxSum() {
		return maxSum;
	}

	public void setMaxSum(double maxSum) {
		this.maxSum = maxSum;
	}

}
